
{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">库存明细历史 [ <a href="__URL__">返回列表</a> ]</h3>
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >产品：</td>
	<td class="tLeft" > <input type="hidden" name="product_id" value="{$vo.product_id}">{$vo.product_id|getModelName=Product} 
<span class="offset1">规格:{$vo.specification|getModelName='Specification'} </span> </td>
</tr>
<tr>
	<td class="tRight" >数量：</td>
	<td class="tLeft" >{$vo.number}</td>
</tr>
<tr>
	<td class="tRight" >仓库：</td>
	<td class="tLeft" >{$vo.warehouse_id|getModelName="Warehouse"} </td>
</tr>
</table>

<ul id="myTab" class="nav nav-tabs">
            <li class="active"><a href="#home" data-toggle="tab">入库历史</a></li>
            <li><a href="#profile" data-toggle="tab">出库历史</a></li>
          
          </ul>
          <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active" id="home">
              <table class="table table-bordered table-striped">
                <tr><th>操作</th> <th>单号</th><th>数量</th><th>客/商</th><th>时间</th> </tr>
                <volist name="enters" id="eo">
                  <tr>
                  <td>采购</td><td>{$eo.mano}</td><td>{$eo.number}</td><td>{$eo.supplier_id|getModelName='Supplier'}</td><td>{$eo.create_time|toDate}</td> 
                  </tr>
                </volist>
                <volist name="sale_backs" id="so">
                  <tr>
                  <td>销售退货</td><td>{$so.sale_back_no}</td><td>{$so.number}</td><td>{$so.customer_id|getModelName='Customer'}</td><td>{$so.create_time|toDate}</td> 
                  </tr>
                </volist>
                <volist name="switch_ins" id="sw">
                  <tr>
                  <td>仓库调拨货</td><td>{$sw.switch_no}</td><td>{$sw.number}</td><td>{$sw.user_id|getModelName='User'}</td><td>{$sw.create_time|toDate}</td> 
                  </tr>
                </volist>
              </table>
              {$page_enters}
            </div>
            <div class="tab-pane fade" id="profile">
              <table class="table table-bordered table-striped">
                <tr><th>操作</th> <th>单号</th><th>数量</th><th>客/商</th><th>时间</th> </tr>
                <volist name="back_suppliers" id="ba">
                  <tr>
                  <td>退货供应商</td><td>{$ba.enter_no}</td><td>{$ba.number}</td><td>{$ba.supplier_id|getModelName='Supplier'}</td><td>{$ba.create_time|toDate}</td> 
                  </tr>
                </volist>
                <volist name="sales" id="sa">
                  <tr>
                  <td>销售</td><td>{$sa.mano}</td><td>{$sa.number}</td><td>{$sa.customer_id|getModelName='Customer'}</td><td>{$sa.create_time|toDate}</td> 
                  </tr>
                </volist>
                <volist name="switch_outs" id="su">
                  <tr>
                  <td>仓库调拨货</td><td>{$su.switch_no}</td><td>{$su.number}</td><td>{$su.user_id|getModelName='User'}</td><td>{$su.create_time|toDate}</td> 
                  </tr>
                </volist>
              </table>
              {$page_sales}
            </div>
        </div>

</div>
</div>
<include file="Public:footer" />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js"/>
<load href="__PUBLIC__/bootstrap/js/bootstrap-tab.js" />
<script>
</script>
